package progetto1.csm.implementation;

import progetto1.csm.core.DataBuilder;
import progetto1.csm.core.DataExporter;
import progetto1.csm.core.Statistics;

public class DataExporterImp implements DataExporter {
	
	private DataBuilder builder;
	
	public DataExporterImp(DataBuilder db) {
		builder=db;
	}

	@Override
	public void export(Statistics s) {
		builder.build(s);

	}

	@Override
	public Object endExporting() {
		return builder.getInstance();
	}

}
